
package cn.edu.scau.cmi.hombio.dao;

import cn.edu.scau.cmi.hombio.domain.PigWeight;

import java.math.BigDecimal;

import java.util.Calendar;
import java.util.Set;

import org.skyway.spring.util.dao.JpaDao;

import org.springframework.dao.DataAccessException;

/**
 * DAO to manage PigWeight entities.
 * 
 */
public interface PigWeightDAO extends JpaDao<PigWeight> {

	/**
	 * JPQL Query - findAllPigWeights
	 *
	 */
	public Set<PigWeight> findAllPigWeights() throws DataAccessException;

	/**
	 * JPQL Query - findAllPigWeights
	 *
	 */
	public Set<PigWeight> findAllPigWeights(int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPigWeightByPrimaryKey
	 *
	 */
	public PigWeight findPigWeightByPrimaryKey(Integer id) throws DataAccessException;

	/**
	 * JPQL Query - findPigWeightByPrimaryKey
	 *
	 */
	public PigWeight findPigWeightByPrimaryKey(Integer id, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPigWeightByMemo
	 *
	 */
	public Set<PigWeight> findPigWeightByMemo(String memo) throws DataAccessException;

	/**
	 * JPQL Query - findPigWeightByMemo
	 *
	 */
	public Set<PigWeight> findPigWeightByMemo(String memo, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPigWeightById
	 *
	 */
	public PigWeight findPigWeightById(Integer id_1) throws DataAccessException;

	/**
	 * JPQL Query - findPigWeightById
	 *
	 */
	public PigWeight findPigWeightById(Integer id_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPigWeightByTime
	 *
	 */
	public Set<PigWeight> findPigWeightByTime(java.util.Calendar time) throws DataAccessException;

	/**
	 * JPQL Query - findPigWeightByTime
	 *
	 */
	public Set<PigWeight> findPigWeightByTime(Calendar time, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPigWeightByMemoContaining
	 *
	 */
	public Set<PigWeight> findPigWeightByMemoContaining(String memo_1) throws DataAccessException;

	/**
	 * JPQL Query - findPigWeightByMemoContaining
	 *
	 */
	public Set<PigWeight> findPigWeightByMemoContaining(String memo_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPigWeightByWeight
	 *
	 */
	public Set<PigWeight> findPigWeightByWeight(java.math.BigDecimal weight) throws DataAccessException;

	/**
	 * JPQL Query - findPigWeightByWeight
	 *
	 */
	public Set<PigWeight> findPigWeightByWeight(BigDecimal weight, int startResult, int maxRows) throws DataAccessException;

}